<?php
/**
 * RegisterController.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-05-08 11:03:16
 * @modified    2023-05-08 11:03:16
 *
 */

namespace App\Http\Controllers;

use App\Services\UserService;

class RegisterController extends BaseModuleController
{
    public function index()
    {
        try {
            (new UserService())->register();
            return message('注册成功', true);
        } catch (\Exception $e) {
            return message($e->getMessage(), false);
        }
    }
}